/* 引入Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #121212;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 520px;
    width: 90%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

/* 主标题 */
.app-title {
    font-size: 2.8em;
    margin-bottom: 32px;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 状态显示区域 */
.status-section {
    margin-bottom: 32px;
}

.current-status {
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tomato-counter {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.counter-value {
    font-size: 1.6em;
    font-weight: 600;
    color: #ff6b6b;
    margin: 0 6px;
    text-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* 时间显示区域 */
.timer-section {
    position: relative;
    margin-bottom: 48px;
}

.time-display {
    font-size: 5.5em;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

/* 进度环 */
.progress-ring {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.progress-ring-svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.progress-ring-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 12;
}

.progress-ring-circle {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 8px currentColor);
}

/* 控制按钮区域 */
.control-section {
    margin-bottom: 36px;
}

.control-btn {
    padding: 16px 32px;
    margin: 0 8px;
    border: none;
    border-radius: 16px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.02em;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.control-btn:hover::before {
    left: 100%;
}

.start-btn {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.start-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.pause-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.pause-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.control-btn:disabled::before {
    display: none;
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
}

.indicator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.indicator-item.active {
    opacity: 1;
    transform: scale(1.15);
}

.indicator-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.work-indicator .indicator-dot {
    background: #ff6b6b;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.4);
}

.break-indicator .indicator-dot {
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

.long-break-indicator .indicator-dot {
    background: #60a5fa;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}

.indicator-item span {
    font-size: 0.85em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.indicator-item.active span {
    color: white;
    font-weight: 500;
}

/* 番茄进度指示 */
.tomato-progress {
    margin-top: 24px;
}

.tomato-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.tomato-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tomato-dot.completed {
    background: #ff6b6b;
    border-color: #ff5252;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.4);
}

.progress-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* 状态主题样式 */
.container.work-mode {
    border-left: 4px solid #ff6b6b;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 107, 107, 0.1);
}

.container.work-mode .current-status {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.2);
}

.container.work-mode .progress-ring-circle {
    stroke: #ff6b6b;
}

.container.break-mode {
    border-left: 4px solid #4ade80;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(74, 222, 128, 0.1);
}

.container.break-mode .current-status {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.2);
}

.container.break-mode .progress-ring-circle {
    stroke: #4ade80;
}

.container.long-break-mode {
    border-left: 4px solid #60a5fa;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(96, 165, 250, 0.1);
}

.container.long-break-mode .current-status {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.2);
}

.container.long-break-mode .progress-ring-circle {
    stroke: #60a5fa;
}

.container.paused {
    border-left: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.container.paused .current-status {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 闪烁动画 */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.container.time-up {
    animation: blink 1s infinite;
}

/* 设置按钮样式 */
.settings-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px) scale(1.02);
}

/* 设置弹窗样式 */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.modal-body {
    padding: 1.5rem;
}

.time-setting-group {
    margin-bottom: 2rem;
}

.time-setting-group h4 {
    margin: 0 0 1rem 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* 时间选择器样式 */
.time-picker {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: end;
}

.time-wheel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.time-wheel label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.time-wheel select {
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
    backdrop-filter: blur(10px);
    font-family: 'Poppins', sans-serif;
}

.time-wheel select:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.time-wheel select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.time-wheel select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.5rem;
}

/* 开关按钮样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 34px;
    backdrop-filter: blur(10px);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #4ade80;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 长休息触发设置 */
.cycle-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.cycle-setting label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.cycle-setting select {
    padding: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    font-family: 'Poppins', sans-serif;
}

.cycle-setting select:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.cycle-setting select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* 弹窗底部按钮 */
.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.confirm-btn {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(74, 222, 128, 0.4);
}

/* 禁用状态的时间选择器 */
.time-picker.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.time-picker.disabled .time-wheel select {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .time-display {
        font-size: 3rem;
    }
    
    .controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 2rem auto;
        padding: 1rem;
        background: rgba(26, 26, 26, 0.95);
    }
    
    .time-picker {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .app-title {
        font-size: 2em;
    }
    
    .time-display {
        font-size: 3em;
    }
    
    .control-btn {
        padding: 12px 20px;
        margin: 5px;
        font-size: 1em;
    }
    
    .status-indicator {
        gap: 20px;
    }
    
    .progress-ring-svg {
        width: 150px;
        height: 150px;
    }
    
    .progress-ring-circle,
    .progress-ring-circle-bg {
        r: 65;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .time-picker {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .time-display {
        font-size: 2.5rem;
    }
    
    .modal-content {
        margin: 1rem auto;
        width: calc(100% - 2rem);
    }
    
    .container {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        padding: 1rem;
    }
}

@media (max-width: 400px) {
    .time-display {
        font-size: 2.5em;
    }
    
    .control-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

/* 音频设置样式 */
.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.audio-settings {
    transition: all 0.3s ease;
    overflow: hidden;
}

.audio-settings.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.audio-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.audio-setting-item label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.sound-type-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sound-type-selector select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.sound-type-selector select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.sound-type-selector select:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.preview-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.preview-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

.preview-btn:active {
    transform: translateY(0);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.volume-control input[type="range"] {
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(74, 222, 128, 0.3);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.volume-control input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(74, 222, 128, 0.3);
}

.volume-value {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    min-width: 35px;
    text-align: right;
}

/* 主题设置样式 */
.theme-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.theme-setting-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-setting-item > label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* 主题色彩选择器 */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.theme-option:hover {
    border-color: #e74c3c;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.theme-option.active {
    border-color: #e74c3c;
    background: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.theme-preview {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 主题色彩定义 */
.default-theme .primary { background: #e74c3c; }
.default-theme .secondary { background: #c0392b; }
.blue-theme .primary { background: #3498db; }
.blue-theme .secondary { background: #2980b9; }
.green-theme .primary { background: #27ae60; }
.green-theme .secondary { background: #229954; }
.purple-theme .primary { background: #9b59b6; }
.purple-theme .secondary { background: #8e44ad; }
.orange-theme .primary { background: #f39c12; }
.orange-theme .secondary { background: #e67e22; }

.theme-option span {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-align: center;
}

/* 字体大小选择器 */
.font-size-selector {
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 8px;
}

.font-size-selector input[type="radio"] {
    display: none;
}

.font-size-option {
    flex: 1;
    padding: 8px 16px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    background: transparent;
}

.font-size-option:hover {
    background: #e9ecef;
    color: #333;
}

.font-size-selector input[type="radio"]:checked + .font-size-option {
    background: #e74c3c;
    color: white;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* 进度环样式选择器 */
.progress-style-selector {
    display: flex;
    gap: 12px;
}

.progress-style-selector input[type="radio"] {
    display: none;
}

.progress-style-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.progress-style-option:hover {
    border-color: #e74c3c;
    background: #fff;
}

.progress-style-selector input[type="radio"]:checked + .progress-style-option {
    border-color: #e74c3c;
    background: #fff;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}

.progress-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: relative;
    background: #f1f2f6;
}

.progress-preview::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: conic-gradient(#e74c3c 0deg 120deg, #f1f2f6 120deg 360deg);
}

.progress-preview.classic::before {
    border: 2px solid #e74c3c;
    background: conic-gradient(#e74c3c 0deg 120deg, transparent 120deg 360deg);
}

.progress-preview.modern::before {
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    mask: conic-gradient(black 0deg 120deg, transparent 120deg 360deg);
    -webkit-mask: conic-gradient(black 0deg 120deg, transparent 120deg 360deg);
}

.progress-preview.minimal::before {
    background: #e74c3c;
    border-radius: 2px;
    transform: rotate(45deg);
}

.progress-style-option span {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

/* 主题色彩方案应用 */
body[data-theme="blue"] {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
}

body[data-theme="green"] {
    --primary-color: #27ae60;
    --primary-dark: #229954;
    --primary-light: #58d68d;
}

body[data-theme="purple"] {
    --primary-color: #9b59b6;
    --primary-dark: #8e44ad;
    --primary-light: #bb8fce;
}

body[data-theme="orange"] {
    --primary-color: #f39c12;
    --primary-dark: #e67e22;
    --primary-light: #f8c471;
}

/* 应用主题色彩到各个元素 */
body[data-theme] .progress-ring-progress {
    stroke: var(--primary-color);
}

body[data-theme] .control-btn.start-btn {
    background: var(--primary-color);
}

body[data-theme] .control-btn.start-btn:hover {
    background: var(--primary-dark);
}

body[data-theme] .modal-btn.confirm-btn {
    background: var(--primary-color);
}

body[data-theme] .modal-btn.confirm-btn:hover {
    background: var(--primary-dark);
}

body[data-theme] .toggle-switch input:checked + .slider {
    background-color: var(--primary-color);
}

body[data-theme] .font-size-selector input[type="radio"]:checked + .font-size-option {
    background: var(--primary-color);
}

/* 暗黑模式样式 */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .container {
    background: #2d2d2d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .modal-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .time-setting-group {
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
}

body.dark-mode .theme-option {
    background: #3a3a3a;
    color: #e0e0e0;
}

body.dark-mode .theme-option:hover,
body.dark-mode .theme-option.active {
    background: #4a4a4a;
}

body.dark-mode .font-size-selector {
    background: #3a3a3a;
}

body.dark-mode .font-size-option {
    color: #e0e0e0;
}

body.dark-mode .progress-style-option {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode .theme-setting-item > label {
    color: #e0e0e0;
}

/* 字体大小变体 */
body.font-small {
    font-size: 14px;
}

body.font-small .timer-display {
    font-size: 4rem;
}

body.font-small .status-text {
    font-size: 1.2rem;
}

body.font-medium {
    font-size: 16px;
}

body.font-medium .timer-display {
    font-size: 5rem;
}

body.font-medium .status-text {
    font-size: 1.5rem;
}

body.font-large {
    font-size: 18px;
}

body.font-large .timer-display {
    font-size: 6rem;
}

body.font-large .status-text {
    font-size: 1.8rem;
}

/* 数据管理设置样式 */
.data-management-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.data-setting-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-setting-item label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.backup-controls,
.reset-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.data-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.data-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.data-btn.export-btn {
    border-color: #4CAF50;
    color: #4CAF50;
}

.data-btn.export-btn:hover {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.data-btn.import-btn {
    border-color: #2196F3;
    color: #2196F3;
}

.data-btn.import-btn:hover {
    background: #2196F3;
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.data-btn.reset-btn {
    border-color: #FF9800;
    color: #FF9800;
}

.data-btn.reset-btn:hover {
    background: #FF9800;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.data-btn.clear-btn {
    border-color: #F44336;
    color: #F44336;
}

.data-btn.clear-btn:hover {
    background: #F44336;
    color: white;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-icon {
    font-size: 16px;
}

.storage-info {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.storage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.storage-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.storage-value {
    color: var(--text-color);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* 暗黑模式下的数据管理样式 */
.dark-mode .storage-info {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .storage-label {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .storage-value {
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 - 音频设置 */
@media (max-width: 768px) {
    .audio-setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .sound-type-selector,
    .volume-control {
        width: 100%;
        justify-content: space-between;
    }
    
    .volume-control input[type="range"] {
        flex: 1;
        margin: 0 0.5rem;
    }
    
    /* 主题设置响应式 */
    .theme-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .theme-option {
        padding: 8px 4px;
    }
    
    .theme-option span {
        font-size: 10px;
    }
    
    .progress-style-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .progress-style-option {
        flex-direction: row;
        gap: 12px;
    }
    
    .backup-controls,
    .reset-controls {
        flex-direction: column;
    }
    
    .data-btn {
        min-width: 100%;
    }
}

/* ==================== 统计面板样式 ==================== */

/* 统计按钮样式 */
.stats-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.stats-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* 统计模态框 */
.statistics-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.statistics-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.statistics-content {
    background: var(--modal-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    animation: slideInUp 0.3s ease;
}

.statistics-body {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

/* 统计概览卡片 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 20px;
}

.stats-card {
    background: var(--modal-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
}

.stats-title {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stats-value {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-label {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stats-detail {
    font-size: 0.85em;
    color: var(--text-color);
    opacity: 0.8;
}

/* 图表区域 */
.stats-charts {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.chart-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-header h4 {
    color: var(--text-color);
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.chart-btn:hover,
.chart-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 200px;
    background: var(--modal-bg);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* 效率分析 */
.efficiency-analysis {
    padding: 0 20px 20px;
}

.efficiency-analysis h4 {
    color: var(--text-color);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.analysis-item {
    text-align: center;
    padding: 15px;
    background: var(--modal-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.analysis-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.analysis-label {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.analysis-value {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
}

/* 数据管理 */
.stats-data-management {
    padding: 0 20px 20px;
}

.stats-data-management h4 {
    color: var(--text-color);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
}

.data-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.data-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.data-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3);
}

.export-stats-btn {
    border-color: #10b981;
    color: #10b981;
}

.export-stats-btn:hover {
    background: #10b981;
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.reset-stats-btn {
    border-color: #f59e0b;
    color: #f59e0b;
}

.reset-stats-btn:hover {
    background: #f59e0b;
    color: white;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

/* 趋势状态样式 */
.analysis-value[data-trend="improving"] {
    color: #10b981;
}

.analysis-value[data-trend="declining"] {
    color: #ef4444;
}

.analysis-value[data-trend="stable"] {
    color: #6b7280;
}

/* 暗黑模式下的统计样式 */
.dark-mode .stats-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .chart-section,
.dark-mode .analysis-grid {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .chart-container,
.dark-mode .analysis-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 - 统计面板 */
@media (max-width: 768px) {
    .statistics-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .stats-card {
        padding: 15px;
    }
    
    .stats-icon {
        font-size: 2em;
    }
    
    .stats-value {
        font-size: 1.8em;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .chart-container {
        height: 150px;
    }
    
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .analysis-item {
        padding: 10px;
    }
    
    .analysis-value {
        font-size: 1.2em;
    }
    
    .data-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .data-action-btn {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 120px;
    }
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 统计卡片加载动画 */
.stats-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ==================== 任务管理样式 ==================== */

/* 任务按钮样式 */
.tasks-btn {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.tasks-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

/* 任务模态框样式 */
.tasks-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.tasks-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tasks-content {
    background: var(--bg-color);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease;
    border: 1px solid var(--border-color);
}

.tasks-body {
    padding: 0;
}

/* 任务输入区域 */
.task-input-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.task-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.task-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1em;
    transition: all 0.3s ease;
}

.task-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.add-task-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-task-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

/* 任务列表区域 */
.tasks-list-section {
    padding: 20px;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.tasks-header h4 {
    color: var(--text-color);
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

.task-filters {
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.tasks-list::-webkit-scrollbar {
    width: 6px;
}

.tasks-list::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 3px;
}

.tasks-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.tasks-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 任务项样式 */
.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.task-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-1px);
}

.task-item.current {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.05);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.15);
}

.task-item.completed {
    opacity: 0.7;
    background: var(--success-bg, rgba(16, 185, 129, 0.1));
    border-color: var(--success-color, #10b981);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.task-checkbox.checked {
    background: var(--success-color, #10b981);
    border-color: var(--success-color, #10b981);
}

.task-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.task-name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1em;
    word-break: break-word;
}

.task-item.completed .task-name {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.task-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.task-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
}

.task-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.edit-task-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.edit-task-btn:hover {
    background: #3b82f6;
    color: white;
}

.delete-task-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.delete-task-btn:hover {
    background: #ef4444;
    color: white;
}

.select-task-btn {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.select-task-btn:hover {
    background: #8b5cf6;
    color: white;
}

/* 空状态样式 */
.tasks-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.tasks-empty-icon {
    font-size: 3em;
    margin-bottom: 16px;
    opacity: 0.5;
}

.tasks-empty-text {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.tasks-empty-hint {
    font-size: 0.9em;
    opacity: 0.7;
}

/* 任务统计区域 */
.task-stats-section {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.task-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
}

/* 模态框底部按钮 */
.clear-completed-btn {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.clear-completed-btn:hover {
    background: #f59e0b;
    color: white;
}

/* 暗黑模式下的任务样式 */
.dark-mode .task-input-section,
.dark-mode .task-stats-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .task-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .task-item:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode .task-filters {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 - 任务管理 */
@media (max-width: 768px) {
    .tasks-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }
    
    .task-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .task-input {
        width: 100%;
    }
    
    .add-task-btn {
        width: 100%;
        padding: 14px;
    }
    
    .tasks-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .task-filters {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
    
    .task-item {
        padding: 12px;
    }
    
    .task-actions {
        opacity: 1;
    }
    
    .task-stats {
        justify-content: space-between;
    }
    
    .stat-item {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .tasks-content {
        width: 98%;
        margin: 10px;
    }
    
    .task-input-section,
    .tasks-list-section,
    .task-stats-section {
        padding: 15px;
    }
    
    .tasks-list {
        max-height: 250px;
    }
    
    .task-item {
        padding: 10px;
        gap: 10px;
    }
    
    .task-action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* 任务编辑模式样式 */
.task-item.editing .task-name {
    display: none;
}

.task-edit-input {
    display: none;
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1em;
    font-weight: 600;
}

.task-item.editing .task-edit-input {
    display: block;
}

.task-edit-actions {
    display: none;
    gap: 8px;
}

.task-item.editing .task-edit-actions {
    display: flex;
}

.task-item.editing .task-actions {
    display: none;
}

.save-task-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.save-task-btn:hover {
    background: #10b981;
    color: white;
}

.cancel-task-btn {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.cancel-task-btn:hover {
    background: #6b7280;
    color: white;
}

/* 动画效果 */
.task-item {
    animation: slideInUp 0.3s ease;
}

.task-item.removing {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 当前任务指示器 */
.current-task-indicator {
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 2px;
}

.task-item.current {
    position: relative;
}

.task-item.current::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 通知设置样式 */
.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-setting-item label {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
}

.notification-setting-item select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.notification-setting-item select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.custom-notification-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.custom-notification-content.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.custom-notification-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-notification-group label {
    font-size: 13px;
    color: #b0b0b0;
    font-weight: 500;
}

.custom-notification-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-notification-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.custom-notification-group input::placeholder {
    color: #777;
}

/* 专注模式样式 */
.focus-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.focus-mode-overlay.active {
    opacity: 1;
    visibility: visible;
}

.focus-mode-content {
    text-align: center;
    max-width: 600px;
    padding: 48px;
}

.focus-mode-title {
    font-size: 3em;
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 300;
}

.focus-mode-subtitle {
    font-size: 1.2em;
    margin-bottom: 32px;
    color: #b0b0b0;
    line-height: 1.6;
}

.focus-mode-timer {
    font-size: 4em;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 32px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.focus-mode-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.focus-mode-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.focus-mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.focus-mode-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.focus-mode-btn.primary:hover {
    background: var(--primary-color-hover);
}

.focus-mode-exit {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.focus-mode-exit:hover {
    background: rgba(255, 255, 255, 0.1);
}

.focus-mode-tips {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.focus-mode-tips p {
    margin-bottom: 8px;
}

/* 标题闪烁效果 */
.title-blink {
    animation: titleBlink 2s ease-in-out infinite;
}

@keyframes titleBlink {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* 按钮点击动画 */
.control-btn {
    transition: all 0.3s ease;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn:active::before {
    width: 300px;
    height: 300px;
}

/* 状态切换动画 */
.container {
    transition: all 0.5s ease;
}

.container.work-mode {
    animation: modeTransition 0.5s ease;
}

.container.break-mode {
    animation: modeTransition 0.5s ease;
}

.container.long-break-mode {
    animation: modeTransition 0.5s ease;
}

@keyframes modeTransition {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 进度环动画优化 */
.progress-ring-circle {
    transition: stroke-dashoffset 0.5s ease-in-out;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        stroke-width: 6;
        opacity: 1;
    }
    50% {
        stroke-width: 8;
        opacity: 0.8;
    }
}

/* 时间完成时的脉冲效果 */
.container.time-up {
    animation: timeUpPulse 1s ease-in-out 3;
}

@keyframes timeUpPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 32px 64px rgba(255, 107, 107, 0.4);
    }
}

/* 番茄点动画 */
.tomato-dot {
    transition: all 0.3s ease;
    animation: dotFloat 3s ease-in-out infinite;
}

.tomato-dot:nth-child(1) {
    animation-delay: 0s;
}

.tomato-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.tomato-dot:nth-child(3) {
    animation-delay: 0.6s;
}

.tomato-dot:nth-child(4) {
    animation-delay: 0.9s;
}

@keyframes dotFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.tomato-dot.completed {
    animation: dotComplete 0.5s ease;
}

@keyframes dotComplete {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 状态指示器动画 */
.indicator-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indicator-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.indicator-item.active::before {
    left: 100%;
}

.indicator-item.active .indicator-dot {
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 模态框动画 */
.settings-modal, .statistics-modal, .tasks-modal {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.settings-modal.show, .statistics-modal.show, .tasks-modal.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.modal-content {
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 按钮悬停效果增强 */
.control-btn:hover {
    animation: buttonHover 0.3s ease;
}

@keyframes buttonHover {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(-2px);
    }
}

/* 专注模式按钮特殊效果 */
.focus-btn.active {
    animation: focusActive 2s ease-in-out infinite;
}

@keyframes focusActive {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
    }
}

/* 通知动画 */
.notification {
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 加载动画 */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 数据卡片动画 */
.stats-card, .task-item {
    animation: cardSlideUp 0.4s ease-out;
}

@keyframes cardSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 任务完成动画 */
.task-item.completed {
    animation: taskComplete 0.5s ease;
}

@keyframes taskComplete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
        background: rgba(76, 175, 80, 0.1);
    }
    100% {
        transform: scale(1);
        background: rgba(76, 175, 80, 0.05);
    }
}

/* 响应式动画 */
@media (max-width: 768px) {
    .control-btn:hover {
        transform: none;
        animation: none;
    }
    
    .control-btn:active {
        transform: scale(0.95);
    }
    
    .container.time-up {
        animation: timeUpPulseMobile 1s ease-in-out 3;
    }
    
    @keyframes timeUpPulseMobile {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.02);
        }
    }
}

/* 平板端优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 480px;
        padding: 40px;
    }
    
    .app-title {
        font-size: 2.4em;
    }
    
    .time-display {
        font-size: 3.5em;
    }
    
    .control-section {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .control-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 120px;
    }
    
    .progress-ring-svg {
        width: 180px;
        height: 180px;
    }
    
    .modal-content {
        max-width: 90vw;
        margin: 20px;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        background: #121212;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
        padding: 24px 20px;
        margin: 0;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    
    .app-title {
        font-size: 2.2em;
        margin-bottom: 24px;
    }
    
    .time-display {
        font-size: 3em;
        margin-bottom: 16px;
    }
    
    .progress-ring-svg {
        width: 160px;
        height: 160px;
    }
    
    .control-section {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .control-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .status-indicator {
        flex-direction: column;
        gap: 8px;
    }
    
    .indicator-item {
        width: 100%;
        justify-content: center;
        padding: 8px;
        border-radius: 8px;
    }
    
    .tomato-progress {
        margin-top: 20px;
    }
    
    .tomato-dots {
        justify-content: center;
    }
    
    .tomato-dot {
        width: 12px;
        height: 12px;
    }
    
    /* 模态框移动端优化 */
    .settings-modal, .statistics-modal, .tasks-modal {
        padding: 10px;
        align-items: flex-start;
    }
    
    .modal-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 20px 20px 0;
        position: sticky;
        top: 0;
        background: inherit;
        z-index: 1;
    }
    
    .modal-body {
        padding: 20px;
        max-height: none;
    }
    
    .modal-footer {
        padding: 0 20px 20px;
        position: sticky;
        bottom: 0;
        background: inherit;
        z-index: 1;
    }
    
    .modal-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* 设置项移动端优化 */
    .time-setting-group {
        margin-bottom: 20px;
    }
    
    .time-picker {
        flex-direction: column;
        gap: 12px;
    }
    
    .time-wheel {
        width: 100%;
        max-width: none;
    }
    
    .time-wheel select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .theme-selector {
        flex-direction: column;
        gap: 12px;
    }
    
    .theme-option {
        width: 100%;
        justify-content: flex-start;
    }
    
    .font-size-selector {
        justify-content: space-between;
    }
    
    .font-size-option {
        flex: 1;
        text-align: center;
    }
    
    .progress-style-selector {
        flex-direction: column;
        gap: 12px;
    }
    
    .progress-style-option {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* 统计页面移动端优化 */
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stats-card {
        padding: 16px;
    }
    
    .stats-value {
        font-size: 1.8em;
    }
    
    .chart-container {
        margin: 0 -20px;
    }
    
    .chart-container canvas {
        max-width: 100%;
        height: auto;
    }
    
    .efficiency-analysis {
        margin: 0 -20px;
        padding: 20px;
    }
    
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* 任务管理移动端优化 */
    .task-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .task-input {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .add-task-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .task-filters {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-btn {
        width: 100%;
        padding: 10px;
    }
    
    .task-item {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .task-content {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .task-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .task-action-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .task-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .stat-item {
        justify-content: space-between;
        padding: 8px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }
    
    .app-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .time-display {
        font-size: 2.5em;
    }
    
    .progress-ring-svg {
        width: 140px;
        height: 140px;
    }
    
    .control-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header h3 {
        font-size: 1.4em;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 0 16px 16px;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 16px;
        max-width: 80%;
    }
    
    .app-title {
        font-size: 1.8em;
        margin-bottom: 16px;
    }
    
    .time-display {
        font-size: 2.5em;
        margin-bottom: 12px;
    }
    
    .progress-ring-svg {
        width: 120px;
        height: 120px;
    }
    
    .control-section {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .control-btn {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .status-indicator {
        flex-direction: row;
        gap: 12px;
    }
    
    .indicator-item {
        width: auto;
        padding: 6px 12px;
    }
    
    .tomato-progress {
        margin-top: 12px;
    }
    
    .modal-content {
        max-height: 80vh;
    }
}

/* 触摸优化 */
@media (hover: none) {
    .control-btn:hover {
        transform: none;
        animation: none;
    }
    
    .control-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .task-action-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .filter-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .theme-option:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    /* 增加点击目标大小 */
    .control-btn {
        min-height: 44px;
    }
    
    .task-action-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .close-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .theme-option {
        min-height: 44px;
    }
    
    .filter-btn {
        min-height: 44px;
    }
}

/* 高分辨率屏幕优化 */
@media (min-resolution: 2dppx) {
    .progress-ring-circle {
        stroke-width: 8;
    }
    
    .tomato-dot {
        border-width: 2px;
    }
    
    .indicator-dot {
        border-width: 2px;
    }
}

/* 深色模式系统偏好 */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
    }
    
    .container {
        background: rgba(20, 20, 20, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .control-btn:hover {
        transform: none;
    }
    
    .control-btn:active {
        transform: none;
    }
    
    .container.time-up {
        animation: none;
    }
    
    .progress-ring-circle {
        animation: none;
    }
    
    .tomato-dot {
        animation: none;
    }
    
    .indicator-item.active .indicator-dot {
        animation: none;
    }
}